#include "vieweditscreen.h"
#include "ui_vieweditscreen.h"
#include "editteam.h"

ViewEditScreen::ViewEditScreen(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::ViewEditScreen)
{
    ui->setupUi(this);
    viewplayerwindow = new viewplayerscreen();
}

ViewEditScreen::~ViewEditScreen()
{
    delete ui;
}

//Opens the view player screen when the user clicks on the view player button
void ViewEditScreen::showPlayerScreen(){
    viewplayerwindow->show();
}

//Opens the view team screen when the user clicks on the view team button
void ViewEditScreen::openEditTeamWindow() {
        edit_team_win = new EditTeam();
        edit_team_win->show();

}

void ViewEditScreen::goBack() {
    this->close();
}
